package cn.dancepeak.system.mapper;

import cn.dancepeak.system.domain.Permission;
import cn.dancepeak.system.query.PermissionQuery;

import java.util.List;

public interface PermissionMapper {
    void insert(Permission permission);

    void updateById(Permission permission);

    void deleteById(Long id);

    void deleteByList(List<Long> ids);

    Permission selectById(Long id);

    List<Permission> list(PermissionQuery permissionQuery);

    Permission selectByPermissionName(String permissionName);

    Permission selectBySn(String permissionSn);

    List<Permission> all();
}
